<template>
  <div class="title-view">
    <div class="line"></div>
    <svg-icon class="icon" :name="icon"></svg-icon>
    <div class="title">{{ title }}</div>
  </div>
</template>

<script setup lang="ts">
defineProps({
  icon: {
    type: String,
    default: '',
  },
  title: {
    type: String,
    default: '',
  },
});
</script>

<style lang="less" scoped>
.title-view {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;

  .line {
    width: 2px;
    height: 16px;
    background: #0f64ff;
  }

  .title {
    font-size: 12px;
    color: #333;
  }
}
</style>
